Sober. If you get used to the habit of producing drunk/high/whatever, after some time, chances are you will only be able to write music under the influence and it's not what you want. Yes, I've produced under the influence too and I liked the result, but I try to avoid it.