Draw line from object to his look

Hello,

I want to draw line from Object to his look rotation line should be like 10.0f lenght and change when he looks can anyone help me with this?

Debug.DrawLine(transform.position, transform.TransformDirection(transform.forward*10.0f),color.red);
Untested, but should work.