Is it possible to use preprocessor definitions in C# like we do in C and C++?

Code:
#define DEBUG
// ...
#ifdef DEBUG
Console.WriteLine("This is a debug message.");
#endif // #ifdef DEBUG