Ruby's REPL, and particularly when enhanced with Pry (binding.pry), can function like this reasonably trivially. You can't connect to an existing system like attaching a debugger, but you can make a call to binding.pry or binding.pry_remote depending on a parameter.
Usually Ruby is used with Rails, where in development mode modifying the source and repeating the request is just as easy.
Usually Ruby is used with Rails, where in development mode modifying the source and repeating the request is just as easy.