4th year phd in BiomedEngineering - How do I maximize my chances of getting an assistant professorship in my hometown? Preface: I know 


how how difficult is to get any professorship
that i should write really good research papers etc...
that its not smart to plan on this and only this 


My hometown is middle of the country, only 2 universities in my field. 
Help me out, how do I maximize my chances of being near my family and getting my ideal job?
Take a good, hard look at the research being done in the department, and the specialties of the professors. Are there any subfields where the department is weak? Are there cross-field collaborations that could be done, but aren't? Is there an emeritus or soon-to-be emeritus professor that will leave a gap in coverage?

What you're looking for is a niche that you can fill.