The Net::SFTP documentation already gives examples of the callbacks to monitor progress.
This is not a code writing service. We will readily provide you with the appropriate documentation and support you with your problems, but you will have to do the learning and the work yourself.