Print debug messages to stderr

Closes #29294.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>