Higher Green functions and their CM values