With DocX, I wasn’t able to get any of the merge fields directly, but I was able to simply replace their text, e.g.
document.ReplaceText("<<AMergeField>>", "replacement text")
which worked well enough for my purposes.