If it's for piping the output of one program to another, not really sure how I'd go about that, but if it's for debugging a plugin and you're using Visual Studio, you could use Debug.WriteLine(). Remember to import the System.Diagnostics namespace though:
using System.Diagnostics;