```
debug() {
    [[ -n $debug ]] && echo [DEBUG] $@
}
```
Results in: 
```
$ debug hello world
[DEBUG] hello world
```