Replace a few puts statements with debug lines

Replace some puts statements with logger.debug