Replaces debugging statements with "fail!" macros.