Replace embedded ruby?

I‘m trying to debug a plug-in issue on macOS Ventura. One of the loose parts is the embedded ruby shipped with vagrant.
Is there a way to replace the ruby vagrant uses?