unity draw ray from one object to another

Code Example - unity draw ray from one object to another

                
                        Debug.DrawRay(a.transform.position, (b.transform.position - a.transform.position) * maxDistance, Color.Green);