A feature somewhat similar to `marginalia` is probably going to merged into Rails very soon: https://github.com/rails/rails/pull/26815
I have built a product (rails app monitoring service) that shows the file:line for each SQL request: https://rorvswild.com