In my case, my home country is India, and I return to India from Germany. My Visa expires a day before I reach my home country. I leave the foreign country within the Visa valid period. Is there going to be a problem?
Your own country cannot refuse to admit you, and it is none of their business whether any foreign visas you have are valid. You are Indian, so you have an absolute right to enter India, period!
So no, there will be no problems, so long as your passport is valid.
According to this page on Frankfurt Airport:
If you are traveling to a country outside the Schengen Zone or you are not a citizen of an EU country, you will be checked when leaving Germany. You may be required to show that you have a visa.
If that is correct, and the German immigration checks your visa, you should get an exit stamp, assuming you are leaving directly from Germany to India.
If they don't for some reason you should be able to request a stamp- Germany requires that you declare cash in excess of EUR 10K on exit, for example, so there must be a customs and immigration station available.