What is wrong with my render code?
You cannot run any code after a return statement. By definition the return will exit the function. Try moving the dpm call to just before the return statement. 

As an aside, I believe that best practices say that $block->content should be a render array and not straight up html...