Refactor debug view

Avoid logic in ERB and use helpers.
I think `PP.pp` already returns second argument as return value. Can this just be `PP.pp(clean_params, '', 200)` ?