According to the accepted answer on this question:
When the application is compiled in the release configuration,
the Debug elements will not be compiled into the code.
Do the argument expression evaluation side effects of Debug.WriteLine() (and similar) happen in release builds? I'm not sure what "Debug elements" really means.