<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def debug_sql(sql: str, *args: Any) -> None: """Writes SQL and arguments to the log."""

    log.debug("SQL: %s" % sql)
    if args:
        log.debug("Args: %r" % args)