How to implement C++ funcions and call it in blueprints

Can you answer about the files? How to make the function be found by the blueprint? Need to be in the same folder?