The way I see it you either output to STDOUT, which would make debug output part of the inventory data, thus corrupt it. Or you output to STDERR and Ansible will treat is as actual errors (and show it using red color).
Is there another way to cleanly provide debug info during an Ansible run besides writing to a file?