That’s not exactly what I understood from the OP’s request. I take it more like OCaml’s refactorization tools should work in the doc strings too.
Note that if you use the syntax @gasche mentioned you will get a warning about an unknown identifier which is just one step short of what the OP wants.