Refactor debug view

Avoid logic in ERB and use helpers.
Perhaps more contextual to call this method `debug_params`