Formats and prints text if global debug option is enabled.
Input:
text (string): String to print.
varargin (cell): Additional arguments that are passed to sprintf.