Drain tofu well and cut into several large cubes. Put the tofu into food processor with garlic cloves and grind until combined. Put tofu mixture into a bowl and mix with the ricotta, egg, parmesan (if using) and gradually add breadcrumbs until you get a workable consistencey- you may need less or more. Mix thoroughly and add salt (about 1/2 teaspoons or so) and fresh pepper. Form balls out of the mixture (about 1.5 inches) making sure they are held together well and roll in the remaining breadcrumbs (if you need more breadcrumbs just use more).
Grease a baking sheet and place the tofu balls on the sheet. Bake for 35-45 minutes, until form, carefully turning halfway through.
Serve as is, with tomato sauce, pesto or my favorite -- over spaghetti.