For the acidic pka, Anahita, the acid/base conjugates are carbonic acid H2CO3/Hydrogen carbonate HCO3-. The same equation would apply: pH = pka + log ([base]/[acid]). But, carbonic acid exists only in its sodiated forms. So only way is to titrate a sodium bicarbonate solution with HCl. Keep track of how much NaCl you're generating and keep in mind that bicarbonate anion cannot be constantly maintained at acidic pH because it would slowly decompose to water and carbon dioxide.
For related RG discussions; see: https://www.researchgate.net/post/How_can_stabilise_the_pH_of_01M_sodium_bicarbonate_solution_made_in_the_lab_to_80 https://www.researchgate.net/post/Anyone_know_how_to_prepare_2_M_of_sodium_bicarbonate_pH_100_solution_no_buffer