Debugging Rails Engines

I am working on a Rails app that uses an engine. I would like to debug one of the controllers in the engine using byebug or Pry, but the breakpoint does not work when I run rails server for the main application, like it would if I inserted the statement in the main application code. Is there a way to use these tools on the Engine code? Thanks!