(define (debug fmt . args) (apply printf (cons (string-append fmt "\n") args))) ;; Usage examples: ;; (debug "foo") ;; (debug "foo ~a" 123)