FYI ActiveMerchant has a standard debugging mechanism already: If you run with the environment variable DEBUG_ACTIVE_MERCHANT set to true (e.g, `$ DEBUG_ACTIVE_MERCHANT=true rake test`) then you should see debugging output.

This is enabled via [test/test_helper.rb](https://github.com/Shopify/active_merchant/blob/1c9729776dc46018aa29502f68786dd8b5527d8c/test/test_helper.rb#L51-L55) which flows down into ActiveUtils via a fairly convoluted chain and eventually gets set [inside](https://github.com/Shopify/active_utils/blob/2e1eb9141e5c03952137c87403d127885ea1abc4/lib/active_utils/common/connection.rb#L29-L30) the connection class that all of ActiveMerchant uses, which is then used for [general logging](https://github.com/Shopify/active_utils/blob/2e1eb9141e5c03952137c87403d127885ea1abc4/lib/active_utils/common/connection.rb#L161-L164) as well as within [net/http](https://github.com/Shopify/active_utils/blob/2e1eb9141e5c03952137c87403d127885ea1abc4/lib/active_utils/common/connection.rb#L99-L101).

But in summary - You should remove your DEBUG variable and all `puts` from your code.