Example 1: Naive approach.

void Foo(int x, int y)
{   
    cout << endl << "Foo(int x, int y) - start";
    ...
    cout << endl << "Foo(int x, int y) - finish";
}