debug.log

C#
Debug.Log("Whatever you want your output debug console to display in Unity");
// can take all types of values.
// and don't forget the semi-colon.Debug.Log("Hello World");Debug.Log("Hello, World");
Source

Also in C#: