Today Firebase released its brand new product Cloud Functions for Firebase and I just created a hello world function and deploy it on my existing firebase project.
I
firebaser here
To debug your Cloud Functions for Firebase locally, there is an emulator. See the documentation for more info.