Setting debug location

I’m working on a gem for DCI (maroon) and a major part of that gem does
source code transformation. the gem works fine but I want to improve the
debugging experience and to do that I need to be able to let the
environment know what line of source code was actually executed. Is
there any way to override the position that the environment believes is
executed? This will only be done when debugging and not in a release
build so I’m not to concerned about the performance part of it