Take a look at this extension: autoDocstring. It works quite the described way. Configure it for your needs, before use, though.