Thanks Weston, you pointed me in the right direction and I was able to find the var_dump()
statements in some legacy code in our theme.
My mistake was just looking in the AMP template files, but I realized that some core theme files like functions.php
(in our case, a file loaded by that file) also get loaded and looked in there until I found the problem.